home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 July / EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso / earcd / biz / dbase / msql_2_b.lha / Hughes / makegen / yacc.mm < prev   
Text File  |  1997-04-08  |  388b  |  22 lines

  1. #!/bin/sh
  2.  
  3. . $MACRO_DIR/makegen/makegen.cf
  4.  
  5. src=$1
  6. shift
  7. comment=$*
  8. outfile=`echo $src | sed "s/\.y\$/.c/"`
  9. obj=`echo $src | sed "s/\.y\$/.o/"`
  10.  
  11. echo    "$outfile : $src"
  12. echo    "    @echo \"$comment\""
  13. echo    '    $(YACC) $(YACC_FLAGS)'" $src"
  14. echo    "    mv y.tab.c $outfile"
  15. echo
  16. echo    "$obj : $outfile"
  17. echo    '    $(CC) $(CC_FLAGS)'" -c $outfile"
  18. echo
  19. echo    "clean ::"
  20. echo    "    rm -f $outfile y.tab.*"
  21. echo
  22.